package com.tansuo365.test1.bean.otherbean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tansuo365.test1.bean.InfoData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 申购详细列表(物料)
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShengouDetails implements Serializable,InfoData {

    private Integer id;
    @ExcelProperty(value="大类",index=0)
    private String dalei;
    @ExcelProperty(value="物料编码",index=1)
    private String wuliaobianma;

    private String zhuanye;
    @ExcelProperty(value="名称规格",index=2)
    private String mingchengguige;
    @ExcelProperty(value="单位",index=3)
    private String danwei;
    @ExcelProperty(value="申购数量",index=4)
    private Double number;
    @ExcelProperty(value="存放地点",index=5)
    private String jiaohuodidian;
    @ExcelProperty(value="到货日期",index=6)
    @DateTimeFormat("yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date xuqiuriqi;
    @ExcelProperty(value="质量要求",index=7)
    private String zhiliangyaoqiu;
    @ExcelProperty(value="备注",index=8)
    private String beizhu;
    @ExcelProperty(value="甲供乙供",index=9)
    private String jiagongyigong;



    private Double daohuoshuliang;





    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatetime;

    private Integer zongzhangid;

    @Transient
    private String sort;
    @Transient
    private String order;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDalei() {
        return dalei;
    }

    public void setDalei(String dalei) {
        this.dalei = dalei;
    }

    public String getWuliaobianma() {
        return wuliaobianma;
    }

    public void setWuliaobianma(String wuliaobianma) {
        this.wuliaobianma = wuliaobianma;
    }

    public String getZhuanye() {
        return zhuanye;
    }

    public void setZhuanye(String zhuanye) {
        this.zhuanye = zhuanye;
    }

    public String getMingchengguige() {
        return mingchengguige;
    }

    public void setMingchengguige(String mingchengguige) {
        this.mingchengguige = mingchengguige;
    }

    public String getDanwei() {
        return danwei;
    }

    public void setDanwei(String danwei) {
        this.danwei = danwei;
    }

    public Double getNumber() {
        return number;
    }

    public void setNumber(Double number) {
        this.number = number;
    }

    public Double getDaohuoshuliang() {
        return daohuoshuliang;
    }

    public void setDaohuoshuliang(Double daohuoshuliang) {
        this.daohuoshuliang = daohuoshuliang;
    }

    public String getJiaohuodidian() {
        return jiaohuodidian;
    }

    public void setJiaohuodidian(String jiaohuodidian) {
        this.jiaohuodidian = jiaohuodidian;
    }

    public String getZhiliangyaoqiu() {
        return zhiliangyaoqiu;
    }

    public void setZhiliangyaoqiu(String zhiliangyaoqiu) {
        this.zhiliangyaoqiu = zhiliangyaoqiu;
    }

    public Date getXuqiuriqi() {
        return xuqiuriqi;
    }

    public void setXuqiuriqi(Date xuqiuriqi) {
        this.xuqiuriqi = xuqiuriqi;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getZongzhangid() {
        return zongzhangid;
    }

    public void setZongzhangid(Integer zongzhangid) {
        this.zongzhangid = zongzhangid;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getJiagongyigong() {
        return jiagongyigong;
    }

    public void setJiagongyigong(String jiagongyigong) {
        this.jiagongyigong = jiagongyigong;
    }
}